Serialize iptables calls in hotplug scripts
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 28 May 2009 10:07:19 +0000 (11:07 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 28 May 2009 10:07:19 +0000 (11:07 +0100)
commitf09d7f0b593f96d5f89d9883d6fd300781b28771
tree46a218540dd74afd30f865d70d7c6755ecff46fd
parente1ae548d4277b16b9897b64e45f309f9c9523bf3
Serialize iptables calls in hotplug scripts

iptables cannot correctly handle situations when more than one command
is trying to set netfilter rules. In such situations, iptables may fail
with EAGAIN, which results in iptables: Unknown error
18446744073709551615.

Such situation can easily happen when multiple network devices are
configured for a domain as vif hotplug scripts are called in parallel
for all of the network devices.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tools/hotplug/Linux/vif-common.sh